﻿using Anke.SHManage.MSSQLDAL.FixedAssetsDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anke.SHManage.BLL.FixedAssetsBLL
{
    public class FixedAssetsRepairBLL
    {
        /// <summary>
        /// 获取固定资产维修记录
        /// </summary>
        /// <param name="pageSize"></param>
        /// <param name="pageIndex"></param>
        /// <param name="assetTypeID"></param>
        /// <param name="materialID"></param>
        /// <param name="assetID"></param>
        /// <param name="DateStart"></param>
        /// <param name="DateEnd"></param>
        /// <returns></returns>
        public object GetRepairList(int pageSize, int pageIndex, string assetTypeID, string materialID, string assetID, DateTime DateStart, DateTime DateEnd)
        {
            return new FixedAssetsRepairDAL().GetRepairList(pageSize, pageIndex, assetTypeID, materialID, assetID, DateStart, DateEnd);
        }

        /// <summary>
        /// 根据编码获取资产维修数据
        /// </summary>
        /// <param name="Code"></param>
        /// <returns></returns>
        public Model.FixedAssetsModel.FIXED_RepairInfo GetRepairData(string Code)
        {
            return new FixedAssetsRepairDAL().GetRepairData(Code);
        }

        /// <summary>
        /// 新增资产维修
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public bool InsertEditPageData(Model.FixedAssetsModel.FIXED_RepairInfo info)
        {
            return new FixedAssetsRepairDAL().InsertEditPageData(info);
        }

        /// <summary>
        /// 修改资产维修
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public bool UpdateEditPageData(Model.FixedAssetsModel.FIXED_RepairInfo info)
        {
            return new FixedAssetsRepairDAL().UpdateEditPageData(info);
        }
    }
}
